<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:camunda="http://activiti.org/bpmn" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_d7q6sNXEEeSerdx1RlQrFQ" exporter="camunda modeler" exporterVersion="2.7.0" targetNamespace="http://activiti.org/bpmn">
  <bpmn2:process id="timer-example" name="Timer Example" isExecutable="true">
    <bpmn2:scriptTask id="init" name="Initialize" scriptFormat="groovy">
      <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
      <bpmn2:script><![CDATA[execution.setVariable("expiryDuration", "3");

System.out.println("Starting Timer-Example");]]></bpmn2:script>
    </bpmn2:scriptTask>
    <bpmn2:startEvent id="StartEvent_ProcessStart" name="Process Start">
      <bpmn2:extensionElements>
        <camunda:formData/>
      </bpmn2:extensionElements>
      <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="StartEvent_ProcessStart" targetRef="init"/>
    <bpmn2:userTask id="nextTask" name="Next Task">
      <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
      <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:endEvent id="EndEvent_ProcessEnd" name="Process End">
      <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:boundaryEvent id="BoundaryEvent_1" name="" attachedToRef="timerTask">
      <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
      <bpmn2:timerEventDefinition id="TimerEventDefinition_1">
        <bpmn2:timeDuration xsi:type="bpmn2:tFormalExpression">PT${expiryDuration}S</bpmn2:timeDuration>
      </bpmn2:timerEventDefinition>
    </bpmn2:boundaryEvent>
    <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="BoundaryEvent_1" targetRef="nextTask"/>
    <bpmn2:userTask id="timerTask" name="Timer Task">
      <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="timerTask" targetRef="nextTask"/>
    <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="init" targetRef="timerTask"/>
    <bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="nextTask" targetRef="EndEvent_ProcessEnd"/>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="timer-example">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_11" bpmnElement="StartEvent_ProcessStart">
        <dc:Bounds height="36.0" width="36.0" x="204.0" y="174.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="222.0" y="215.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_EndEvent_11" bpmnElement="EndEvent_ProcessEnd">
        <dc:Bounds height="36.0" width="36.0" x="1032.0" y="174.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="17.0" width="25.0" x="1038.0" y="215.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_UserTask_3" bpmnElement="timerTask">
        <dc:Bounds height="80.0" width="100.0" x="432.0" y="152.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_UserTask_3" targetElement="_BPMNShape_UserTask_11">
        <di:waypoint xsi:type="dc:Point" x="532.0" y="192.0"/>
        <di:waypoint xsi:type="dc:Point" x="744.0" y="192.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="6.0" width="6.0" x="610.0" y="192.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_StartEvent_11" targetElement="_BPMNShape_ScriptTask_6">
        <di:waypoint xsi:type="dc:Point" x="240.0" y="192.0"/>
        <di:waypoint xsi:type="dc:Point" x="290.0" y="192.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="6.0" width="6.0" x="244.0" y="192.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_6" bpmnElement="init">
        <dc:Bounds height="80.0" width="100.0" x="290.0" y="152.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_UserTask_11" bpmnElement="nextTask">
        <dc:Bounds height="80.0" width="100.0" x="744.0" y="152.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_BoundaryEvent_11" bpmnElement="BoundaryEvent_1">
        <dc:Bounds height="36.0" width="36.0" x="461.0" y="214.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="6.0" width="6.0" x="476.0" y="255.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_BoundaryEvent_11" targetElement="_BPMNShape_UserTask_11">
        <di:waypoint xsi:type="dc:Point" x="479.0" y="250.0"/>
        <di:waypoint xsi:type="dc:Point" x="479.0" y="280.0"/>
        <di:waypoint xsi:type="dc:Point" x="794.0" y="280.0"/>
        <di:waypoint xsi:type="dc:Point" x="794.0" y="232.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="6.0" width="6.0" x="631.0" y="280.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_ScriptTask_6" targetElement="_BPMNShape_UserTask_3">
        <di:waypoint xsi:type="dc:Point" x="390.0" y="192.0"/>
        <di:waypoint xsi:type="dc:Point" x="432.0" y="192.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_UserTask_11" targetElement="_BPMNShape_EndEvent_11">
        <di:waypoint xsi:type="dc:Point" x="844.0" y="192.0"/>
        <di:waypoint xsi:type="dc:Point" x="1032.0" y="192.0"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>